#ifndef TYPEDEFS_H
#define TYPEDEFS_H

#ifndef LOG_TAG
#define LOG_TAG "auth_verify_sdk"
#endif

#include "hilog/log.h"
#include "commons.h"

#define AUTH_LOGI(fmt, ...) HILOG_INFO(LOG_APP, fmt, ## __VA_ARGS__)
#define AUTH_LOGE(fmt, ...) HILOG_ERROR(LOG_APP, "%{public}s-%{public}d " fmt, __func__, __LINE__, ## __VA_ARGS__)

enum ErrorCode {
	AUTH_SUCCESS,
	AUTH_ERROR_INVALID_ARGUMENT = 0x01401001,
	AUTH_ERROR_NOT_ENOUGH_BUFFER = 0x01401002,
	AUTH_ERROR_PROXY_GET_FAIL = 0x01401003,
	AUTH_ERROR_MALLOC_FAIL = 0x01401004,
	AUTH_ERROR_BAD_STATE = 0x01401005,
	AUTH_ERROR_LOAD_PKEY_FAIL = 0x01401006,
	AUTH_ERROR_INIT_DRBG_FAIL = 0x01401007,
	AUTH_ERROR_RANDOM_FAIL = 0x01401008,
	AUTH_ERROR_ENCRYPT_FAIL = 0x01401009,
	AUTH_ERROR_VERIFY_FAIL = 0x0140100a,
};

#endif //TYPEDEFS_H
